Skip to content

Learning Weekly-2025-01-05

Determine if a function is marked with async

字节面试题:判断传入的函数是否标记了async【渡一教育】_哔哩哔哩_bilibili

Determine if the function's [Symbol.toStringTag] is equal to AsyncFunction.

All async functions, the value of this property on their prototype is equal to AsyncFunction, and for functions that return a Promise, this property is not this value.

VScode Regular Expression Extension

vscode的正则插件【渡一教育】_哔哩哔哩_bilibili